﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Staff_insertEmergency : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostBack)
        {
            TextBox1.Text = "";
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        SqlDataSource1.DataBind();
        SqlDataSource2.DataBind();
        SqlDataSource3.DataBind();
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        if (!String.IsNullOrEmpty(TextBox2.Text))
        {
            SqlDataSource3.Insert();
        }
    }
}